package com.chinameyer.equipment_ebook;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan(basePackages = {"com.chinameyer.equipment_ebook.mapper"})
@Configuration
@EnableTransactionManagement
@EnableScheduling
public class EquipmentEbookApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(EquipmentEbookApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(EquipmentEbookApplication.class);
    }
}
